package com.ruoyi.labdata.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.labdata.mapper.LabGasCylindersTypeMapper;
import com.ruoyi.labdata.domain.LabGasCylindersType;
import com.ruoyi.labdata.service.ILabGasCylindersTypeService;

/**
 * 气瓶名录Service业务层处理
 * 
 * @author winner pan
 * @date 2022-02-16
 */
@Service
public class LabGasCylindersTypeServiceImpl implements ILabGasCylindersTypeService 
{
    @Autowired
    private LabGasCylindersTypeMapper labGasCylindersTypeMapper;

    /**
     * 查询气瓶名录
     * 
     * @param cylindersType 气瓶名录ID
     * @return 气瓶名录
     */
    @Override
    public LabGasCylindersType selectLabGasCylindersTypeById(Long cylindersType)
    {
        return labGasCylindersTypeMapper.selectLabGasCylindersTypeById(cylindersType);
    }

    /**
     * 查询气瓶名录列表
     * 
     * @param labGasCylindersType 气瓶名录
     * @return 气瓶名录
     */
    @Override
    public List<LabGasCylindersType> selectLabGasCylindersTypeList(LabGasCylindersType labGasCylindersType)
    {
        return labGasCylindersTypeMapper.selectLabGasCylindersTypeList(labGasCylindersType);
    }

    /**
     * 新增气瓶名录
     * 
     * @param labGasCylindersType 气瓶名录
     * @return 结果
     */
    @Override
    public int insertLabGasCylindersType(LabGasCylindersType labGasCylindersType)
    {
        return labGasCylindersTypeMapper.insertLabGasCylindersType(labGasCylindersType);
    }

    /**
     * 修改气瓶名录
     * 
     * @param labGasCylindersType 气瓶名录
     * @return 结果
     */
    @Override
    public int updateLabGasCylindersType(LabGasCylindersType labGasCylindersType)
    {
        return labGasCylindersTypeMapper.updateLabGasCylindersType(labGasCylindersType);
    }

    /**
     * 批量删除气瓶名录
     * 
     * @param cylindersTypes 需要删除的气瓶名录ID
     * @return 结果
     */
    @Override
    public int deleteLabGasCylindersTypeByIds(Long[] cylindersTypeIds)
    {
        return labGasCylindersTypeMapper.deleteLabGasCylindersTypeByIds(cylindersTypeIds);
    }

    /**
     * 删除气瓶名录信息
     * 
     * @param cylindersType 气瓶名录ID
     * @return 结果
     */
    @Override
    public int deleteLabGasCylindersTypeById(Long cylindersTypeId)
    {
        return labGasCylindersTypeMapper.deleteLabGasCylindersTypeById(cylindersTypeId);
    }
}
